//
//  LJHPlayerViewController.h
//  HEARME
//
//  Created by mac on 16/1/27.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "LJHBaseViewController.h"
#import "LJHAlbumModel.h"
#import "STKAudioPlayer.h"
#import "LJHPlayerView.h"
//#import "TOBaseViewController.h"
@interface LJHPlayerViewController : LJHBaseViewController

+(instancetype)sharaMusicPlayer;

@property(nonatomic,retain)LJHPlayerView *playerView;

//播放器
@property(nonatomic,retain)STKAudioPlayer *player;

//定时器
@property(nonatomic,retain)NSTimer *playTimer;
@property(nonatomic,retain)NSTimer *titleTimer;
@property(nonatomic,retain)UILabel *currentTimeLabel;
@property(nonatomic,retain)UILabel *totalTimeLabel;

//播放的音乐数组
@property(nonatomic,retain)NSMutableArray *allMusicArray;
@property(nonatomic,assign)NSInteger index;
@property(nonatomic,assign)NSInteger song_id;//传过来的音频id
@property(nonatomic,assign)NSInteger indexRow;//记录上一页点击cell的下标

-(void)upButtonAction:(UIButton *)btn;
-(void)nextButtonAction:(UIButton *)btn;
-(void)playButtonAction:(UIButton *)btn;

@end
